package org.mushroomdb.security;

/**
 * @author Tomas
 *
 * Permission Bean
 */
public class Privilege {
	
	private String name;
	private int code;
	
	
	public Privilege(String name){
	    this.name= name;
	    this.code= PermissionHelper.getInstance().getCode(name);
	    
	}
	
	
	public String getName(){
		return this.name;
		
	}

    
    public int getCode() {
        return this.code;
    }
}
